#define _CRT_SECURE_NO_WARNINGS   1
#include<stdio.h>
#include<stdbool.h>
#include<assert.h>
#define MAX 999
typedef int HeapType;

typedef struct Heap {
	int a[MAX];
	int size;
}Heap;

void AdjustUp(HeapType* a[], int child);
void AdjustDown(HeapType* a, int i, int n);
void HeapInit(Heap*php);
void HeapInsert(Heap*php,HeapType x);
void HeapPrint(HeapType* a, int n);
void HeapPop(Heap*php);
HeapType HeapTop(Heap*php); 
int HeapEmpty(Heap*php);
void HeapSort(int* a, int n);
//
